﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using dbclass.Properties;

namespace dbclass
{
    public class dbcmds
    {
        public static String Cadena()
        {
            String Cad = dbclass.Properties.configuracion.Default.ConnectionString;
            return Cad;
        }
        public static MySqlConnection ObtenerConex()
        {
            MySqlConnection Conn = new MySqlConnection(Cadena());
            return Conn;
        }
        public static MySqlCommand Comandos(string cmdmysql, MySqlConnection pConn)
        {
            MySqlCommand cmd = new MySqlCommand(cmdmysql, pConn);
            return cmd;
        }
    }
 
}
